package com.shop.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author shop
 * @since 2018-12-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OrderTb implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号
     */
    private String orderNum;

    /**
     * 下单时间
     */
    private LocalDateTime placeOrderDatetime;

    /**
     * 商品id
     */
    private Integer orderGoodsId;

    /**
     * 订单内容
     */
    private String orderContent;

    /**
     * 付款
     */
    private BigDecimal orderPrice;

    /**
     * 商品数量
     */
    private Integer orderGoodsNum;

    /**
     * 所属用户
     */
    private Integer orderUserId;

    /**
     * 收货地址
     */
    @TableField("order_Shipping_address")
    private String orderShippingAddress;

    /**
     * 订单流程 1未付款2 已付款3未发货4已发货5未收货6已收货
     */
    private String orderProcess;

    /**
     * 订单状态 1运行中  2已终止  3已完成
     */
    private String orderStatus;


}
